import Vue from 'vue'
import Router from 'vue-router'

import home from '@/page/home/home'
import songList from '@/page/songList/songList'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component:home,
      children:[
        {
          path: '/home',
          name: 'home',
          component:home
        }
      ]
    },
    {
      path:'/list/',
      name:'songList',
      component:songList
    }

  ]
})
